<?php
/**
 * Created by PhpStorm.
 * User: 田家强
 * Date: 2017/4/6
 * Time: 21:25
 */
namespace Home\Controller;
use Think\Controller;
class BascController extends Controller
{



    public function store(model $Model,$data,$url,\Closure $callback=null)
    {


    }

//      $Model  = new ConfigModel(), $data =I('post.');
//        $res = $Model->store($data);
//        if($res[ 'valid' ] == 'success' && $callback instanceof \Closure)
//        {
//            $callback($res);
//        }
//        $this->message($res,$url);
//    }
//
//    public function message($res,$url){
//        if($res['valid']=='success'){
//            $this->success($res['msg'],$url);exit;
//        }else{
//            $this->error($res['msg'],$url);exit;
//        }
//    }


}